package objetBo;

import java.util.Date;

/**
 *
 * @author verpoorten
 */
public class SuiviLoyer {

    private Long idSuivi;
    private Long idLocation;
    private Date dateLoyerAttendu;
    private Date dateLoyerRecu;
    private Integer etatLoyer;
    private String remarque;
    private Date dateDeModif;
    public SuiviLoyer() {
    }

    public Long getIdSuivi() {
        return idSuivi;
    }

    public void setIdSuivi(Long idSuivi) {
        this.idSuivi = idSuivi;
    }

    public Long getIdLocation() {
        return idLocation;
    }

    public void setIdLocation(Long idLocation) {
        this.idLocation = idLocation;
    }

    public Date getDateLoyerAttendu() {
        return dateLoyerAttendu;
    }

    public void setDateLoyerAttendu(Date dateLoyerAttendu) {
        this.dateLoyerAttendu = dateLoyerAttendu;
    }

    public Date getDateLoyerRecu() {
        return dateLoyerRecu;
    }

    public void setDateLoyerRecu(Date dateLoyerRecu) {
        this.dateLoyerRecu = dateLoyerRecu;
    }

    public Integer getEtatLoyer() {
        return etatLoyer;
    }

    public void setEtatLoyer(Integer etatLoyer) {
        this.etatLoyer = etatLoyer;
    }

    public String getRemarque() {
        return remarque;
    }

    public void setRemarque(String remarque) {
        this.remarque = remarque;
    }

    public Date getDateDeModif() {
        return dateDeModif;
    }

    public void setDateDeModif(Date dateDeModif) {
        this.dateDeModif = dateDeModif;
    }
    
    public EtatSuivi getEtatSuivi(){
        return EtatSuivi.fromCode(this.getEtatLoyer());
    }
    
    
}
